<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Demo</title>
  </head>
  <body>
    <a href="http://jquery.com/">jQuery</a>
    <script src="jquery.js"></script>
    <script>
      // Your code goes here
		window.onload = function() {  alert("welcome");}
		
		$( document ).ready( function() {  
		// Your code here
			$("p").click( function() { $("p").hide(); })
			
			alert("hello");
		});
		
		$( document ).ready(function() {  $("a").click(function( event ) {    alert("Thanks for visiting!");  });});
	</script>
	
	<p id="a">click me</p>
  </body>
</html>
